Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle light account backup while on FiatPluginEnterAmountScene #5358

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Nov 14, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

@Jon-edge Jon-edge force-pushed the jon/fix/light-acc-warning branch 2 times, most recently from 56a7510 to 58b819f Compare November 14, 2024 01:15
@@ -85,6 +87,9 @@ export const FiatPluginEnterAmountScene = React.memo((props: Props) => {
throw new Error('disableInput must be 1 or 2')
}
const lastUsed = React.useRef<number>(1)
const account = useSelector(state => state.core.account)
const currentUsername = useWatch(account, 'username')
const [initUsername] = React.useState(account.username)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're not changing the state, use useRef

@Jon-edge Jon-edge force-pushed the jon/fix/light-acc-warning branch from 58b819f to b2b1c6a Compare November 18, 2024 21:57
@Jon-edge Jon-edge force-pushed the jon/fix/light-acc-warning branch from b2b1c6a to d3d4778 Compare November 19, 2024 01:20
@Jon-edge Jon-edge merged commit 6cca4ec into develop Nov 19, 2024
2 checks passed
@Jon-edge Jon-edge deleted the jon/fix/light-acc-warning branch November 19, 2024 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants